package com.wyx.bbs.mapper;

import com.wyx.bbs.domain.ArticleToUser;
import com.wyx.bbs.domain.Focus;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: Wu YunXia
 * @Description:
 * @Date: Created in 16:32 2021/4/26
 * @Modefied By:
 */
@Mapper
public interface FocusMapping {

/**
 * 添加
 */
int addFocus(Focus focus);

/**
 * 查询关注列表
 */
List<ArticleToUser> focusList(int uid);

/**
 * 查询用户是否被关注
 */
List<ArticleToUser> isFollow(int uid, int id);

}
